export const header_length = 28;
//消息类型
export const messageType = {
    UNKNOWN: {
        key: 0,
        val: "未知"
    },
    REQ: {
        key: 1,
        val: "请求"
    },
    RES: {
        key: 2,
        val: "响应"
    }
};
//消息指令
export const command = {
    AUTH: {
        key: 1,
        val: "权限请求"
    },
    P2P_SENDER: {
        key: 2,
        val: "单聊发送方请求"
    },
    P2P_NOTIFY: {
        key: 3,
        val: "单聊发送给接收方请求"
    },
    P2P_NOTIFY_ACK: {
        key: 4,
        val: "单聊接收方响应(receiver to server)"
    },
    P2P_NOTIFY_TO_SENDER_ACK: {
        key: 5,
        val: "单聊发送方接收到接收方的ack(receiver to sender)"
    },
    OFFLINE_MSG_PULL: {
        key: 6,
        val: "离线消息拉取请求"
    },
    OFFLINE_MSG_ACK: {
        key: 7,
        val: "离线消息拉取确认请求"
    },
    GENERATE_ID: {
        key: 98,
        val: "生成id"
    },
    HEART_BEAT: {
        key: 99,
        val: "心跳"
    },
    ERROR: {
        key: 100,
        val: "错误处理"
    },
    KICK_OUT: {
        key: 101,
        val: "踢出"
    }
};

